<div class="row-fluid">
<?php $link=$CFG->config['base_url'].'boutique/'.$boutique->shop_link.'.html';?>
<section class="span9">
	<article class="boutique">
		<nav>
			<ul class="breadcrumb">
				<li><a href="<?php echo $CFG->config['base_url'] ?>boutique">Boutique</a></li>
				
				<li> > </li>
				<!--
				<?php 
				foreach ($boutique->category as $category):
				?>
				<li><a href="<?php echo $CFG->config['base_url'].'boutique/'.$category->link ?>"><?php echo  $category->name?></a></li>
				 
				<li> > </li>
				<?php endforeach;?>
				 -->
				 
				<li><a href="<?php echo $link ?>"> <?php echo  $boutique->company_name?> </a></li>
			</ul>
		</nav>
		
		<header>
			<h2><?php echo  $boutique->tilte?></h2>
		</header>
			<p>Mise en ligne par <?php echo  $boutique->frist_name.' '.$boutique->last_name?> - <time datetime="<?php echo  date('Y-m-d H:i:s',$boutique->date_validate)?>"><?php echo  $boutique->date?></time></p>
			
			<p class="description">
			<?php if($boutique->youtube){
		    		$youtubeRegexp = "#(/v/|/watch\?v=)([A-Za-z0-9_-]{5,11})#";
					$embedUrl = preg_replace($youtubeRegexp, '/embed/$2',$boutique->youtube);
		    		echo '<iframe class="youtube" width="420" height="315" src="'.$embedUrl.'" frameborder="0" allowfullscreen></iframe>
					';
				}
	    		echo $boutique->description;
	    		?>
			</p>
	</article>
</section>

<aside class="span3 category-aside">
    <ul class="nav nav-list">
	    
	    <li class="nav-header">Contacter</li>
		<li class="annonce">
			<a href="#" class="thumbnail">
			<img data-src="holder.js/260x180" src="<?php echo $CFG->config['base_url']?>images/logos/thumbnails/<?php echo $boutique->logo?>"/>
			 </a>
			<div class="caption">
				<h4><?php echo  $boutique->company_name?></h4>
				<div><span class="icon-home"></span> <?php echo  $boutique->adresse?></div>
				<div><?php echo  $boutique->code_postal.' - '.$boutique->ville?></div>
				<div><span class="icon-globe"></span> Site : <?php echo  $boutique->site?></div>
		
			</div>
		</li>
		<?php if($boutique->telephone):?>
		<li><span class="icon-comment"></span> Téléphone : <?php echo  $boutique->telephone?></li>
		<?php endif;?>
		<li><span class="icon-qrcode"></span> Siren : <?php echo  $boutique->siren?></li>
		<li><a class="block" href="<?php echo $CFG->config['base_url'].'boutique/envoyer/mail/'.$boutique->id?>"><span class="icon-envelope"></span><strong> Envoyer un email </strong></a></li>	
		
		<?php if($boutique->open):?>
		
		<li class="divider"></li>
		<li class="nav-header">Horaires</li>
		<li><?php echo $boutique->open?></li>
		<?php endif;?>
		<li class="divider"></li>
	   
	    <li class="nav-header">Gérer votre boutique</li>
		<li><a href="<?php echo $CFG->config['base_url'].'boutique/gerer/modifier/'.$boutique->id?>"><span class="icon-edit"></span> Modifier</a></li>
		<li><a href="<?php echo $CFG->config['base_url'].'boutique/gerer/supprimer/'.$boutique->id?>"><span class="icon-trash"></span> Supprimer</a></li>
	</ul>	
</aside>

</div>